home *** CD-ROM | disk | FTP | other *** search
/ PC Action 1998 November / PC Action Issue 71 (Xenia) (Novembre 1998).iso / kernels / makedisks.12 < prev    next >
Text File  |  1998-05-17  |  803b  |  32 lines

  1. #!/bin/sh
  2. # This makes a bootkernel disk in /dev/fd0 from a kernel image.
  3. #
  4. # Run this in a directory containing the kernels you're gonna use, and a
  5. # subdirectory with a master image of the bootkernel disk.
  6. #
  7. # This is the command to use:
  8. #
  9. # makedisk kernel_image disk_size
  10. #          ^^           ^^^^^^^^^ This is 1440 or 1200
  11. #          ^^^^^ This is the name (and maybe path to) the kernel you're going
  12. #                to use, such as scsinet/zImage.
  13. #
  14.  
  15. mkdisk() {
  16.  if [ -r $1/zImage ]; then
  17.    makedisk $1/zImage 1200
  18.  elif [ -r $1/bzImage ]; then
  19.    makedisk $1/bzImage 1200
  20.  elif [ -r $1/vmlinuz ]; then
  21.    makedisk $1/vmlinuz 1200
  22.  fi
  23. }
  24.  
  25. # We only slightly support 1.2 MB boot drives @ this point:
  26. for dir in bare.i scsi.s net.i scsinet.s ; do
  27.  if [ -d $dir ]; then
  28.   mkdisk $dir
  29.  fi
  30. done
  31.